package com.landscope.issue.controller.wx;

import com.landscope.issue.controller.api.dto.LoginDto;
import com.landscope.issue.controller.api.param.LoginParam;
import com.landscope.issue.controller.base.ResponseResult;
import com.landscope.issue.controller.wx.dto.AppletProjectListDto;
import com.landscope.issue.controller.wx.param.AppletAuthParam;
import com.landscope.issue.controller.wx.param.AppletBandingParam;
import com.landscope.issue.service.ApiUserService;
import com.landscope.issue.service.applet.ApiAppletLoginService;
import com.landscope.issue.service.applet.ApiAppletProjectService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import java.util.List;

@RequestMapping("api/applet/project")
@RestController
@Api(tags = "9.小程序-项目")
@CrossOrigin
public class ApiAppletProjectController {

    @Resource
    private ApiAppletProjectService apiAppletProjectService;

    /**
     * 登录
     *
     * @return {@link * @return java.lang.Object}
     * @throws
     * @author 瞿子朋
     * @date 2021/8/2 9:58
     * @version v1.0
     **/
    @ApiOperation(value = "9.1 获取项目列表", notes = "获取项目列表")
    @PostMapping("/list")
    public ResponseResult<AppletProjectListDto> list() {
        return apiAppletProjectService.list();
    }
}
